package cn.dxh.stagefinal.bean;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author: Panjianwei
 * @date: 2019/12/10 9:19
 * 代码是一门艺术，需要我们细细用心品味！
 * 多方
 */
public class Business {
    private Integer bid;
    private String relation;//关系 人
    private String workunit;//往来单位
    private String item;//事由
    private String money;//金钱
    private String recordName;//记录人
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date recorddate;//记录时间
    private Integer vid;//车辆id
    private Integer itemsid;//事项id
    private Integer account;//账务/0出账1进账
    private Integer check;//审核
    private Integer affirm;//确认
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date businessdate;//业务时间
    private Integer statu;

    public Integer getStatu() {
        return statu;
    }

    public void setStatu(Integer statu) {
        this.statu = statu;
    }

    //    关联表
    private Matter matter;//事项表  1方
    private Vehicle vehicle;//车辆表  1方

    public Business() {
    }

    public String getMoney() {
        return money;
    }
    public Business(Integer bid, String relation, String workunit, String item, String money, String recordName, Date recorddate, Integer vid, Integer itemsid, Integer account, Integer check, Integer affirm, Date businessdate, Matter matter, Vehicle vehicle) {
        this.bid = bid;
        this.relation = relation;
        this.workunit = workunit;
        this.item = item;
        this.money = money;
        this.recordName = recordName;
        this.recorddate = recorddate;
        this.vid = vid;
        this.itemsid = itemsid;
        this.account = account;
        this.check = check;
        this.affirm = affirm;
        this.businessdate = businessdate;
        this.matter = matter;
        this.vehicle = vehicle;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }

    public String getWorkunit() {
        return workunit;
    }

    public void setWorkunit(String workunit) {
        this.workunit = workunit;
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }



    public String getRecordName() {
        return recordName;
    }

    public void setRecordName(String recordName) {
        this.recordName = recordName;
    }

    public Date getRecorddate() {
        return recorddate;
    }

    public void setRecorddate(Date recorddate) {
        this.recorddate = recorddate;
    }

    public Integer getVid() {
        return vid;
    }

    public void setVid(Integer vid) {
        this.vid = vid;
    }

    public Integer getItemsid() {
        return itemsid;
    }

    public void setItemsid(Integer itemsid) {
        this.itemsid = itemsid;
    }

    public Integer getAccount() {
        return account;
    }

    public void setAccount(Integer account) {
        this.account = account;
    }

    public Integer getCheck() {
        return check;
    }

    public void setCheck(Integer check) {
        this.check = check;
    }

    public Integer getAffirm() {
        return affirm;
    }

    public void setAffirm(Integer affirm) {
        this.affirm = affirm;
    }

    public Date getBusinessdate() {
        return businessdate;
    }

    public void setBusinessdate(Date businessdate) {
        this.businessdate = businessdate;
    }

    public Matter getMatter() {
        return matter;
    }

    public void setMatter(Matter matter) {
        this.matter = matter;
    }

    public Vehicle getVehicle() {
        return vehicle;
    }

    public void setVehicle(Vehicle vehicle) {
        this.vehicle = vehicle;
    }

    @Override
    public String toString() {
        return "Business{" +
                "bid=" + bid +
                ", relation='" + relation + '\'' +
                ", workunit='" + workunit + '\'' +
                ", item='" + item + '\'' +
                ", money=" + money +
                ", recordName='" + recordName + '\'' +
                ", recorddate=" + recorddate +
                ", vid=" + vid +
                ", itemsid=" + itemsid +
                ", account=" + account +
                ", check=" + check +
                ", affirm=" + affirm +
                ", businessdate=" + businessdate +
                ", matter=" + matter +
                ", vehicle=" + vehicle +
                '}';
    }
}
